module DataMUX(ResultIn,Imm32In,DataIn,SeqAddrIn,SelectorIn,DataOut);
  input [31:0]ResultIn;
  input [31:0]Imm32In;
  input [31:0]DataIn;
  input [31:0]SeqAddrIn;
  input [1:0]SelectorIn;
  output reg [31:0]DataOut;

  always@(*)begin
    case (SelectorIn)
      2'b00:DataOut<=ResultIn;
      2'b01:DataOut<=Imm32In;//lui
      2'b10:DataOut<=DataIn;//lw
      2'b11:DataOut<=SeqAddrIn;//jal、jalr
      default:DataOut<=0;
    endcase
  end
endmodule
